package org.jetnuke.dao;

import java.util.List;

import org.jetnuke.entities.Picture;

public interface PictureDAO {
	Picture retrieveByPK(int id) throws Exception;

	int addNew(Picture picture)throws Exception;

	List retrieveByUser(int id)throws Exception;

	void update(Picture picture)throws Exception;

	List getLast(int last)throws Exception;

	void moveAlbum(int userid, int init, int final_)throws Exception;

	List selectByAlbum(int aid)throws Exception;

	int getLastByAlbum(int aid)throws Exception;

	List search(String searchval, int start, int limit)throws Exception;

	int countAllSearch(String searchval)throws Exception;

	void vote(int pid, int score)throws Exception;

	List getTop(int i)throws Exception;

	void deleteByPID(int pid)throws Exception;
	
}
